#ifndef LOGICMANAGER_H
#define LOGICMANAGER_H

#include <irrlicht.h>
#include "ILogicNode.h"

class LogicManager {

private:
	irr::u32 _last_time;
	irr::core::map<irr::s32, ILogicNode *> _nodes;
	irr::ITimer *_timer;

public:
	LogicManager(irr::ITimer *timer);
	void updateAll();
	void add(ILogicNode *node, irr::s32 name);
    ILogicNode* getNodeFromID(irr::s32 id);
};
#endif

